package com.mszlu.blog.service;

import com.mszlu.blog.dao.pojo.SysUser;
import com.mszlu.blog.vo.Result;
import com.mszlu.blog.vo.UserVo;
import org.springframework.stereotype.Repository;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 李
 * @Date: 2022/03/20/9:21
 * @Description:
 */

public interface UserService {
    /**
     * 根据id查询用户信息
     * @param userId
     * @return
     */
    SysUser findUserById(Long userId);

    SysUser findUser(String account, String password);
    /**
     * 根据token查询用户信息
     * @param token
     * @return
     */
    Result findUserByToken(String token);
    /**
     * 账号查询
     * @param account
     * @return
     */
    SysUser findUserByAccount(String account);
    /**
     * 保存用户
     * @param sysUser
     */
    void save(SysUser sysUser);
    /**
     * 根据作者id查询信息
     * @param id
     * @return
     */
    UserVo findUserVoById(Long id);


}
